package org.yuanqiframework.yuanqi.boot.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.yuanqiframework.yuanqi.boot.sys.entity.SysConfig;
import org.yuanqiframework.yuanqi.boot.sys.vo.ConfigParams;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author cbt28
 * @description 针对表【sys_config】的数据库操作Mapper
 * @createDate 2025-07-19 16:59:34
 * @Entity org.yuanqiframework.yuanqi.boot.sys.entity.SysConfig
 */
public interface SysConfigMapper extends BaseMapper<SysConfig> {
    @Select("select key_name as `key` , setting_value as `value` , info as remark from sys_config order by id")
    List<ConfigParams> queryConfigParams();

    @Select("select setting_value from sys_config where key_name = #{key}")
    String get(String key);
}




